package com.woniuxy.core.config;

import com.woniuxy.ribbon.config.ClusterWeightRule;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.context.annotation.Configuration;

/**
 * 负载均衡配置类
 */
@Configuration
//全局配置
@RibbonClients(defaultConfiguration = ClusterWeightRule.class)
//局部配置
//@RibbonClient(value = "服务名",configuration = RibbonConfig.class)
public class LoadBalanceConfig {
}
